<!DOCTYPE html>
<%@ page language="java" import="com.compuvest.web.*" pageEncoding="UTF-8" %>

<%@ taglib uri="/WEB-INF/tld/head.tld" prefix="head" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<fmt:setBundle basename="properties.Compuvest" var="cv" scope="page" />

<jsp:useBean id="sb" class="SQLBean" scope="application"/>
<jsp:useBean id="basket" class="Basket" scope="session"/>
<jsp:useBean id="advertShow" class="AdvertShow" scope="application"/>
<%
    String body = "";
    Customer cust = basket.getCustomer();
    if(cust == null) {
        response.sendRedirect(/*application.getInitParameter("https") +*/ "./CustomerForm.jsp");
        return;
    }
    else {
	body = sb.getHistoryOrder(advertShow.getInt(request.getParameter("oid"), 0), cust.getCustomerID());
    }
%>
<html>
<head>
<title><fmt:message key='webcorp' bundle='${cv}'/> Order Print</title>
<%@include file="./incl/scripts.txt" %>
</head>
<body style='background-color:white;'>
<div id='cvbody'>

 <head:show />

 <div id='cvcont'>
  <table id='cvmain'>
  <colgroup><col width='80px'/><col width='*'/><col width='80px'/></colgroup>
  <tbody>
   <tr>
    <td id='cvleft' valign="top">


    </td>
    <td id='cvcenter' align="center" valign="top">

<%= body %>

    </td>
    <td id='cvright' valign="top">


    </td>
   </tr>
  </tbody>
  </table>
 </div>

 <div id='cvfoot'></div>
</div>

</body>
</html>
